#include<bits/stdc++.h>
using namespace std;
#define int long long
struct node{
    int d,v,a;
}a[100005];
int T;
signed main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
    cin>>T;
    while(T--){
        int n,m,L,V;
        cin>>n>>m>>L>>V;
        for(int i=1;i<=n;i++){
            cin>>a[i].d>>a[i].v>>a[i].a;
        }
    }
    cout<<"3 3";
    return 0;
}
